package models;

import play.data.validation.Constraints.*;
import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.List;

/**
 * Created by inhandui on 14/05/2014.
 */
@Entity
public class Aulas extends Model {
    @Id
    Long id;

    @Required
    String titulo;

    @Required
    String assunto;

    @Required
    List<Curso> cursos;

    @Required
    Integer quantidadeDeAulas;

    @Required
    List<Aulas> aulas;
}
